Measure values and color legends
- Connect to the Sample-Superstore data set.
- From the Data pane: Drag Order Date to the Columns shelf and Category and Sub-Category to the Rows shelf. Drag Measure Names to the columns shelf and drop it to the right of Order Date . Drag Measure Values to Color on the Marks card.
- Drag Order Date to the Columns shelf and Category and Sub-Category to the Rows shelf.
- Drag Measure Names to the columns shelf and drop it to the right of Order Date .
- Drag Measure Values to Color on the Marks card.
- In the Measure Values card, drag measures off the card so that you keep SUM(Sales) , and SUM(Profit) only.
- Click Label on the Marks card and select Show mark labels to show the measure values in the view. When you drag Measure Values to Color on the Marks card, Tableau creates a single color legend and adds it to the view. Your view should look something like this.
- To create separate legends for each measure on the view, click the drop-down arrow on the Measure Values field in the Marks card and select Use Separate Legends from the context menu. Tableau Desktop version Web version Tableau creates an individual color legend for each measure in the view using the default color palette. To assign a different color palette to the color legend, do one of the following: In Tableau Desktop, click the drop-down arrow in the top right corner for each color legend and select Edit Colors . Then select a color from the Palette drop-down list. In Tableau Server or Tableau Online, click the drop-down arrow in the top right corner for each color legend. Then select a color from the Palette drop-down list. Your view might look something like the following example:
- In Tableau Desktop, click the drop-down arrow in the top right corner for each color legend and select Edit Colors . Then select a color from the Palette drop-down list.
- In Tableau Server or Tableau Online, click the drop-down arrow in the top right corner for each color legend. Then select a color from the Palette drop-down list.
- To combine the separate legends back to a single legend, click the drop-down arrow on the Measure Values field on the Marks card and select Combine Legends from the context menu. Tableau Desktop version Web version